<%-- 
    Document   : createTag
    Created on : Nov 20, 2011, 3:04:32 PM
    Author     : Breath
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<!DOCTYPE html>
<f:view>
    <f:loadBundle basename="citypress" var="msg1"/>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Create Comment</title>
        </head>
        <body>
        <h:form id="commentForm" > 
            <hr>
            <h:messages/>
            <fieldset>

                <h:outputLabel for="articleId" value="article id"/>
                <h:inputText id="articleId" value="#{commentBean.comment.articleId}" required="true"/>
                
                
                
                <h:outputLabel for="commentBody" value="commentBody"/>
                <h:inputText id="commentBody" value="#{commentBean.comment.commentBody}" required="true"/>
                
                
                
                <h:outputLabel for="id" value="id"/>
                <h:inputText id="id" value="#{commentBean.comment.id}" required="true"/>
              

            </fieldset>

            <hr>
            <h:commandButton value="#{msg1.register}" action="#{commentBean.persistComment()}"/>
            <h:commandButton value="#{msg1.back}"  action="showSomething"/>
            <hr>
        </h:form>
        </body>
    </html>
</f:view>
